/*
 * Copyright © 2016 Cask Data, Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
 * use this file except in compliance with the License. You may obtain a copy of
 * the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
 */

@import './styles/variables.scss';
@import './styles/fonts.scss';

#login-form {
  margin-top: 50px;
  .cdap-logo {
    color: #ff6600;
    background: url('/login_assets/img/CDAP_Logotype.svg');
    height: 50px;
    width: 200px;
    background-size: 100% 100%;
    margin: 0 auto;
    margin-bottom: 30px;
  }
  .cask-card {
    padding-top: 10px;
  }
  .error-label {
    margin-left: 10px;
    color: $brand-danger;
    padding-top: 0;
  }
}

$sm-min: map-get($grid-breakpoints, sm);

@media(min-width: $sm-min) {
  #login-form {
    position: absolute;
    top: 40%;
    left: 50%;
    width: 400px;
    height: 400px;
    transform: translate(-50%, -50%);
    padding: 20px;
    .form-control {
      border: 0;
      box-shadow: none;
      border-bottom: 2px solid #cccccc;
      border-radius: 0;
      padding: 2px;
      font-size: 14px;
    }
    .form-group {
      .form-check {
        .form-check-input { position: absolute; }
      }
    }
  }
}
